Q75: From your contract code, you need to call a function in another
contract. Which error handling mechanism would you use?
A. revert
B. assert
C. require
D. try/catch
Q76: In order to validate the user inputs, which among the following
would you use in the Solidity code?
A. revert
B. assert
C. require
D. try/catch
Q77: For checking the internal errors, for example, the overflow and
underflow conditions, which among the following would you use
in the Solidity code?
A. revert
B. assert
C. require
D. try/catch
Q78: If an assert statement fails, what would this denote?
A. The code has some bug to be resolved
B. The input to the function has some issue
C. The response from some external contract has some issue
D. None of these
Q79: The ABI does not contain which of the following?
A. Name of functions
B. Implementation details of functions
C. Inputs, Outputs, and Return types of functions
D. Events